package com.heatingcharge.controller.base;


import com.heatingcharge.common.util.R;
import com.heatingcharge.service.base.IChargeModeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 缴费方式表 前端控制器
 * </p>
 *
 * @author devin.jiang
 * @since 2019-10-25
 */
@RestController
@RequestMapping("/charge-mode")
public class ChargeModeController {
    @Autowired
    IChargeModeService chargeModeService;

    @GetMapping
    public R getChargeMode(){
        return R.ok(chargeModeService.list());
    }
}

